app.controller('MenuCtrl', ['$scope', function($scope){
	$scope.currentIndex = 0;
	$scope.menuData = [
		{
			title:'首页',
			normalImg:'home/imgs/homeIcon.png',
			selectImg:'home/imgs/homeIconC.png',
			router:'home'
		},
		{
			title:'闪送超市',
			normalImg:'market/imgs/marketIcon.png',
			selectImg:'market/imgs/marketIconC.png',
			router:'market'
		},
		{
			title:'购物车',
			normalImg:'car/imgs/carIcon.png',
			selectImg:'car/imgs/carIconC.png',
			router:'car'
		},
		{
			title:'我的',
			normalImg:'mine/imgs/mineIcon.png',
			selectImg:'mine/imgs/mineIconC.png',
			router:'mine'
		}
	];

	$scope.changeMenuIndex = function(){
		$scope.currentIndex = this.$index;
	};

}])